function getNowWeekDay(year,month,day) {
      year = $("#year2").val();
      month = $("#month2").val();
     day = $("#day2").val();

    var d =  new Date();
    if(!year){
        year = d.getFullYear();
    }
    if(!month){
        month = d.getMonth() + 1;
    }
    if(!day){//没有填写
        day = d.getDate();
    }
    //day //不可能为空
    var dateStr = year+'-'+ month +'-'+day;
    var date =  new Date(Date.parse(dateStr.replace(/-/g, "/")));
    var str = "日一二三四五六".charAt(date.getDay());
    alert(year+"-"+ month +"-"+day+" 是：星期"+str);
    console.log(year+"-"+ month +"-"+day+" 是：星期"+str);
    return str;
}